def lib(num, den):
    ratio = 0
    if num < 0 or den < 0:
        ratio = -1
    elif den == 0 or num == 0:
        ratio = 0
    elif den > 200 or num > 200:
        ratio = 200
    elif den < 2:
        ratio = 2 * num
    elif den < 4:
        ratio = num - den
    elif den < 8:
        if num < den:
            ratio = num
        else:
            ratio = den
    elif den < 16:
        if num > den:
            ratio = num
        else:
            ratio = den
    elif den < 32:
        ratio = 32
        for i in range(2, 32):
            if num % i == 0:
                ratio = i
                break
    elif den < 64:
        ratio = 64
        for i in range(2, 64):
            if den % i == 0:
                ratio = i
                break
    elif den < 128:
        ratio1 = 0
        x, y, z = den, num, num

	if num > 130 :
	    ratio = 2
        if den >= 90 :
            for i in range(1, den - 80):
                z = x + y
                x = y
                y = z
    

        if den < 64:
            ratio1 = y

	ratio = ratio + ratio1;
    else:
        ratio = num + den + 10
    return ratio

def client(x, y):
    return lib(x, y)
